
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!-- f标签 取得jsp一些函数工具 -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="f"%>
<!-- 格式化标签 -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<% String path = request.getContextPath();%>
<script type="text/javascript" src="<%=path%>/js/ckeditor/ckeditor.js"></script>
<link rel="stylesheet" type="text/css" href="<%=path%>/js/ckeditor/contents.css"/>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form>
    标题: <input type="text" id="artTitle" name="artTitle" value="${article.artTitle}"><br>
    文章内容：
    <div class="editor">
                <textarea name="artContent" >
                    ${article.artContent}
                </textarea>
    </div><br>
    类型：<select name="artType" id="artType">
    <option value="-1"  <c:if test="${article.artType==-1}">selected</c:if>>类型选择</option>
   <c:forEach items="${artTypes}" var="c">
        <option value="${c.typeId}" <c:if test="${article.artType==c.typeId}">selected</c:if>>${c.typeName}</option>
    </c:forEach>

<%--    <option value="1"  <c:if test="${article.artType==1}">selected</c:if>>吐槽</option>
    <option value="2"  <c:if test="${article.artType==2}">selected</c:if>>文艺</option>
    <option value="3"  <c:if test="${article.artType==3}">selected</c:if>>活动</option>--%>
</select><br>

</form>
</body>
</html>
<script>

    $(function () {
        CKEDITOR.replace("artContent");
    })
</script>